object ForMulti {
  def main(args: Array[String]): Unit = {
    for (i <- 1 to 3; j <- 1 to 3) {
      println("i = " + i + "\tj = " + j)
    }
    println("----------------------------")
    // 上⾯的写法也可以写成：
    for (i <- 1 to 3) {
      for (j <- 1 to 3) {
        println("i = " + i + "\tj = " + j)
      }
    }
  }

}
